package com.woniu.user.client;

import com.woniu.result.Result;
import com.woniu.user.client.param.UserRefundsApplyParam;
import com.woniu.user.client.param.UserReturnGoodsParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "afterManageClient", name = "user")
public interface AfterManageClient {

    /**
     * 退款申请
     *
     * @param refundsApplyParam
     * @return
     */
    @PostMapping("/refundsApply")
    Result refundsApply(@RequestBody UserRefundsApplyParam refundsApplyParam);

    /**
     * 用户退货
     *
     * @return
     */
    @PostMapping("/userReturnGoods")
    Result userReturnGoods(@RequestBody UserReturnGoodsParam returnGoodsParam);
}
